<template></template>
<script setup lang="ts">
  import { onLoad } from '@dcloudio/uni-app';
  import { poster3 } from '@/utils/Static';
  import { toShare } from '@/utils/wechat.jssdk';

  const props = defineProps({
    path: { type: String },
    title: { type: String },
  });
  onLoad(() => {
    shears_find();
  });
  function shears_find() {
    console.log(props.path)
    const data = {
      title: props.title ? props.title : '安蓝车用尿素互联网整体解决方案',
      desc: '品牌直销 大厂品质 国六标准 车用尿素溶液自助加注',
      path: props.path ? props.path : 'https://wx.anlan.tech',
      image: poster3,
    };
    function success() {
      console.log('分享成功');
    }
    toShare(data, success);
  }
  defineExpose({ shears_find });
</script>

<style></style>